import request from '@/util/request'

// 查询用户目录列表
export function getDirectoryList(params) {
    return request({
        url: '/directory/list',
        method: 'GET',
        params
    })
}

// 新增目录
export function addDirectory(data) {
    return request({
        url:'/directory',
        method: 'POST',
        data
    })
}

// 删除目录
export function deleteDirectory(id) {
    return request({
        url:`/directory/${id}`,
        method:'DELETE'
    })
}

// 修改目录
export function updateDirectory(data) {
    return request({
        url:'/directory',
        method: 'PUT',
        data
    })
}
